package come.example.infrastructure;
/*
奖品持久化单元测试
 */

import com.alibaba.fastjson.JSON;
import com.mysql.cj.log.Log;
import come.example.infrastructure.persistent.dao.IAwardDao;
import come.example.infrastructure.persistent.po.Award;

import lombok.extern.slf4j.Slf4j;
//import org.apache.juli.logging.Log;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class AwardDaoTest {
    @Resource
    private IAwardDao awardDao;

    @Test
    public void test_queryAwardList() {
        List<Award> awards = awardDao.queryAwardList();
        log.info("测试结果:{}", JSON.toJSONString(awards));
    }

}
